package com.bwhx.eruler.bean;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

/**
 * Customer 使用系统测量身体尺寸的客户
 * @author Cuilitang
 *
 */
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(Include.NON_NULL)
public class Customer implements Comparable<Customer> {

	private int id;
	private String username;
	private int sex; //1男，2女
	private String company;
	private String phone;
	private String email;
	private String remark;
	private int m_id;     //系统用户id
	private int t_id ;   //模板id
	private Long addtime;
	private List<CScanData> scanDatas;
	
	//2016-11-11 11:20:41 添加属性
	private String departname;
	private String numberid;
	private Byte age; //-128~128
	
	

	public Byte getAge() {
		return age;
	}
	public void setAge(Byte age) {
		this.age = age;
	}
	//2016-11-11 15:49:57
	private String rmac;
	private String rsn;
	
	//2016-11-17 16:16:59
	private String managerName;//量体师姓名
	
	//2016-12-26 17:31:50
	private String devsys;
	private String devmodel;
	private String sysversion;
	
	//2017-2-16 16:08:19
	private String ermac;
	private String ersn;
	
	private String ebmac;
	private String ebsn;
	
	private String cUUID;
	
	private String esmac;
	private String essn;

	private String eamac;
	private String easn;
	
	private String pcode;
	
	
		private String managerMobile;//量体师姓名
		
		
		
		
	
	
	
	
	
	
	
	
	
	
	

	

	public String getManagerMobile() {
			return managerMobile;
		}
		public void setManagerMobile(String managerMobile) {
			this.managerMobile = managerMobile;
		}
	public String getPcode() {
		return pcode;
	}
	public void setPcode(String pcode) {
		this.pcode = pcode;
	}
	public String getEamac() {
		return eamac;
	}
	public void setEamac(String eamac) {
		this.eamac = eamac;
	}
	public String getEasn() {
		return easn;
	}
	public void setEasn(String easn) {
		this.easn = easn;
	}
	public String getEsmac() {
		return esmac;
	}
	public void setEsmac(String esmac) {
		this.esmac = esmac;
	}
	public String getEssn() {
		return essn;
	}
	public void setEssn(String essn) {
		this.essn = essn;
	}
	
	public String getcUUID() {
		return cUUID;
	}
	public void setcUUID(String cUUID) {
		this.cUUID = cUUID;
	}
	public String getDevsys() {
		return devsys;
	}
	public void setDevsys(String devsys) {
		this.devsys = devsys;
	}
	public String getDevmodel() {
		return devmodel;
	}
	public void setDevmodel(String devmodel) {
		this.devmodel = devmodel;
	}
	public String getSysversion() {
		return sysversion;
	}
	public void setSysversion(String sysversion) {
		this.sysversion = sysversion;
	}
	public String getManagerName() {
		return managerName;
	}
	public void setManagerName(String managerName) {
		this.managerName = managerName;
	}
	
	
	public String getRmac() {
		return rmac;
	}
	public void setRmac(String rmac) {
		this.rmac = rmac;
	}
	public String getRsn() {
		return rsn;
	}
	public void setRsn(String rsn) {
		this.rsn = rsn;
	}
	public String getErmac() {
		return ermac;
	}
	public void setErmac(String ermac) {
		this.ermac = ermac;
	}
	public String getErsn() {
		return ersn;
	}
	public void setErsn(String ersn) {
		this.ersn = ersn;
	}
	public String getEbmac() {
		return ebmac;
	}
	public void setEbmac(String ebmac) {
		this.ebmac = ebmac;
	}
	public String getEbsn() {
		return ebsn;
	}
	public void setEbsn(String ebsn) {
		this.ebsn = ebsn;
	}
	public String getDepartname() {
		return departname;
	}
	public void setDepartname(String departname) {
		this.departname = departname;
	}
	public String getNumberid() {
		return numberid;
	}
	public void setNumberid(String numberid) {
		this.numberid = numberid;
	}
	public List<CScanData> getScanDatas() {
		return scanDatas;
	}
	public void setScanDatas(List<CScanData> scanDatas) {
		this.scanDatas = scanDatas;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public int getSex() {
		return sex;
	}
	public void setSex(int sex) {
		this.sex = sex;
	}
	public String getCompany() {
		return company;
	}
	public void setCompany(String company) {
		this.company = company;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public int getM_id() {
		return m_id;
	}
	public void setM_id(int m_id) {
		this.m_id = m_id;
	}
	public int getT_id() {
		return t_id;
	}
	public void setT_id(int t_id) {
		this.t_id = t_id;
	}
	
	public Long getAddtime() {
		return addtime;
	}
	public void setAddtime(Long addtime) {
		this.addtime = addtime;
	}
	@Override
	public String toString() {
		return "Customer [id=" + id + ", username=" + username + ", sex=" + sex + ", company=" + company + ", phone="
				+ phone + ", email=" + email + ", remark=" + remark + ", m_id=" + m_id + "]";
	}
	@Override
	public int compareTo(Customer customer) {
		
		int result = 0;
		if(this.getAddtime()==customer.getAddtime()){
			result = 0;
		}else if(this.getAddtime()>customer.getAddtime()){
			result = 1;
		}else if(this.getAddtime()<customer.getAddtime()){
			result = -1;
		}
		return result;
	}
	
	

}
